package com.stone.framework.message.task;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.stone.framework.message.SortableBody;

import io.swagger.annotations.ApiModelProperty;

public class ScheduleConfigPageReqBody extends SortableBody {

    @ApiModelProperty(value = "服务名称")
    private String serviceName;

    @ApiModelProperty(value = "job名称")
    private String jobName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态：DISABLED|ENABLED")
    @Pattern(regexp = "(DISABLED|ENABLED)", message = "[state] must be 'DISABLED|ENABLED'")
    private String state;

    @Override
    @ApiModelProperty(value = "排序：createDate|updateDate|jobName|serviceName", required = true)
    @NotNull(message = "[orderBy] {title.notNull}")
    @Pattern(regexp = "(createDate|updateDate|jobName|serviceName)",
        message = "[orderBy] must be 'createDate|updateDate|jobName|serviceName'")
    public String getOrderBy() {
        return super.getOrderBy();
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
